﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DroidClaim.Web.Service;
using DroidClaim.Web.Models;
namespace DroidClaim.Web.Mapper
{
	public class CustomerMapper
	{
		public static CustomerModel DtoToModel(CustomerDto inputDto) 
		{
			CustomerModel result = new  CustomerModel();

									result.Id = inputDto.Id;
											result.LicensePlate = inputDto.LicensePlate;
											result.Salt = inputDto.Salt;
											result.Name = inputDto.Name;
											result.Surname = inputDto.Surname;
											result.Mobile = inputDto.Mobile;
											result.Email = inputDto.Email;
											result.CustImgPath = inputDto.CustImgPath;
											result.Password = inputDto.Password;
											result.CarImgPath = inputDto.CarImgPath;
											result.CarBrand = inputDto.CarBrand;
											result.CarModel = inputDto.CarModel;
											result.InsurancePackage = inputDto.InsurancePackage;
											result.Code = inputDto.Code;
							
			return result;
		}

		    	
        public static CustomerDto ModelToDto(CustomerModel inputModel)
        { 
		
			CustomerDto result = new  CustomerDto
        
			{ 

									Id = inputModel.Id,
							
                
									LicensePlate = inputModel.LicensePlate,
							
                
									Salt = inputModel.Salt,
							
                
									Name = inputModel.Name,
							
                
									Surname = inputModel.Surname,
							
                
									Mobile = inputModel.Mobile,
							
                
									Email = inputModel.Email,
							
                
									CustImgPath = inputModel.CustImgPath,
							
                
									Password = inputModel.Password,
							
                
									CarImgPath = inputModel.CarImgPath,
							
                
									CarBrand = inputModel.CarBrand,
							
                
									CarModel = inputModel.CarModel,
							
                
									InsurancePackage = inputModel.InsurancePackage,
							
                
									Code = inputModel.Code,
							
                
				 };
            return result;
        }

	}
}